var getListMixin = {
	data() {
		return {
			list: [],
			page: 1,
			pageSize: 10,
			total: 0
		}
  	},
	methods: {
		fillListData( res, page, pageSize ) {
			if (res && !res.code) {
				const { list = [], total = 0 } = res.data
				this.list = list;
				this.total = total;
				this.page = page;
				this.pageSize = pageSize;
			}
		}
	}
}

export default getListMixin
